package com.lykj.modules.system.service.impl;

import lombok.AllArgsConstructor;
import com.lykj.core.log.model.LogApi;
import com.lykj.core.log.model.LogError;
import com.lykj.core.log.model.LogUsual;
import com.lykj.modules.system.service.LogApiService;
import com.lykj.modules.system.service.LogErrorService;
import com.lykj.modules.system.service.LogService;
import com.lykj.modules.system.service.LogUsualService;
import org.springframework.stereotype.Service;

/**
 * Created by Lykj.
 *
 * @author zhuangqian
 */
@Service
@AllArgsConstructor
public class LogServiceImpl implements LogService {

	private final LogUsualService usualService;
	private final LogApiService apiService;
	private final LogErrorService errorService;

	@Override
	public Boolean saveUsualLog(LogUsual log) {
		return usualService.save(log);
	}

	@Override
	public Boolean saveApiLog(LogApi log) {
		return apiService.save(log);
	}

	@Override
	public Boolean saveErrorLog(LogError log) {
		return errorService.save(log);
	}

}
